package cn.com.jonpad.mq.ampq;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 使用 @EnableRabbit 开启基于注解的RabbitMQ
 * 使用 @RabbitListener(queues = "atguigu.news") 监听 指定Queue 里的消息
 */
@SpringBootApplication
@EnableRabbit
public class Demo09MqAmpqApplication {

	public static void main(String[] args) {
		SpringApplication.run(Demo09MqAmpqApplication.class, args);
	}
}
